package bocchi.character;

import bocchi.general.ResourcePath;
import bocchi.patch.PlayerEnum;
import basemod.BaseMod;
import com.badlogic.gdx.graphics.Color;
import com.megacrit.cardcrawl.cards.AbstractCard.CardColor;
import com.megacrit.cardcrawl.core.CardCrawlGame;

public class Characters {
    public static final Color HITORI_COLOR = new Color(255.0F / 255.0F, 34.0F / 255.0F, 145F / 255.0F, 1.0F);

    private static final String BUTTON = "button.png";
    private static final String PORTRAIT = "portrait.png";
    private static final String BG_ATTACK_512 = "bg_attack_512.png";
    private static final String BG_ATTACK_1024 = "bg_attack_1024.png";
    private static final String BG_SKILL_512 = "bg_skill_512.png";
    private static final String BG_SKILL_1024 = "bg_skill_1024.png";
    private static final String BG_POWER_512 = "bg_power_512.png";
    private static final String BG_POWER_1024 = "bg_power_1024.png";
    private static final String ORB = "orb.png";
    private static final String ORB_CARD = "orb_small.png";
    private static final String ORB_ENERGY = "orb_cost.png";

    public static void registerColors() {
        Color color = HITORI_COLOR;
        CardColor cardColor = PlayerEnum.HITORI_PINK;
        String prefix = ResourcePath.CHARACTER;

        BaseMod.addColor(
                cardColor, color, color, color, color, color, color, color,
                prefix + BG_ATTACK_512, prefix + BG_SKILL_512, prefix + BG_POWER_512,
                prefix + ORB_ENERGY,
                prefix + BG_ATTACK_1024, prefix + BG_SKILL_1024, prefix + BG_POWER_1024,
                prefix + ORB, prefix + ORB_CARD);
    }

    public static void registerCharacter() {
        String prefix = ResourcePath.CHARACTER;
        BaseMod.addCharacter(
                new Hitori(CardCrawlGame.playerName),
                prefix + BUTTON, prefix + PORTRAIT, PlayerEnum.Hitori);
    }
}
